<template>
  <el-dialog
    top="30px"
    width="800px"
    title="项目登记"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <handler-project
      :view-mode="viewMode"
      :query-id="queryId"
      @close="beforeClose"
      @success="handlerSuccess"
    ></handler-project>
  </el-dialog>
</template>

<script>
import HandlerProject from '@/bigcredit/views/self/fast/item/components/HandlerProject'
export default {
  components: {
    HandlerProject,
  },
  props: {
    queryId: String,
    visible: Boolean,
    viewMode: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handlerSuccess() {
      this.$emit('success', false)
    },
  },
}
</script>

<style lang="scss" scoped>
.attach-title {
  font-size: 1.1rem;
  font-weight: bold;
}
.attach-tag-label {
  width: 180px;
  width: var(--tag-balel-width, 180px);
  padding-top: 0.25rem;
  padding-left: 0.5rem;
}
</style>
